#ifndef INDEXTABLE_H_
#define INDEXTABLE_H_

#include "DocMatch.h"
#include "WordCounterTable.h"

#include <map>
#include <string>
#include <fstream>

class IndexTable
{
public:
	IndexTable();
	virtual ~IndexTable();
	void InserirWord(std::string word,std::string doc,uint pos);
	void IniciarTable(std::ifstream * wordTableCounterFile);
	void IniciarTable( WordCounterTable *counterTable);
	void SalvarTable(std::ofstream * IndexTableFile);
	std::map <uint, std::map<std::string,DocMatch> > hashTable;
};

#endif /*INDEXTABLE_H_*/
